package com.ruoyi.his.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 病床信息对象 bed
 * 
 * @author hzr
 * @date 2024-10-19
 */
public class Bed extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public Patient getPatient() {
        return patient;
    }

    public void setPatient(Patient patient) {
        this.patient = patient;
    }

    private Patient patient;
    /** 病床ID */
    private Long id;

    /** 病床编号 */
    @Excel(name = "病床编号")
    private String bedNumber;

    /** 病患ID */
    @Excel(name = "病患ID")
    private Long patientId;

    /** 病床状态 0空闲 1占用 2维修 */
    @Excel(name = "病床状态 0空闲 1占用 2维修")
    private String status;

    /** 记录更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBedNumber(String bedNumber) 
    {
        this.bedNumber = bedNumber;
    }

    public String getBedNumber() 
    {
        return bedNumber;
    }
    public void setPatientId(Long patientId) 
    {
        this.patientId = patientId;
    }

    public Long getPatientId() 
    {
        return patientId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return "Bed{" +
                "patient=" + patient +
                ", id=" + id +
                ", bedNumber='" + bedNumber + '\'' +
                ", patientId=" + patientId +
                ", status='" + status + '\'' +
                ", updatedAt=" + updatedAt +
                '}';
    }
}
